package com.pzb.goods.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pzb.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品属性对象 gd_goods_attribute
 * 
 * @author Mr_Wu
 * @date 2021-11-29
 */
public class GdGoodsAttribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户ID */
    private String extAppid;

    /** 属性名称 */
    private String attributeName;

    /** 默认值 */
    private String defaultValue;

    /** 0为下拉选择；1为文本；2为日期选择；3为时间选择；4为日期范围；5为时间范围；6为开关选项 */
    private String type;

    /** 属性启用状态 */
    private String status;

    /** 排序号 */
    private Integer sort;

    private List<GdGoodsAttributeOption> optionList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setAttributeName(String attributeName) 
    {
        this.attributeName = attributeName;
    }

    public String getAttributeName() 
    {
        return attributeName;
    }
    public void setDefaultValue(String defaultValue) 
    {
        this.defaultValue = defaultValue;
    }

    public String getDefaultValue() 
    {
        return defaultValue;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public List<GdGoodsAttributeOption> getOptionList() {
        return optionList;
    }

    public void setOptionList(List<GdGoodsAttributeOption> optionList) {
        this.optionList = optionList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("attributeName", getAttributeName())
            .append("defaultValue", getDefaultValue())
            .append("type", getType())
            .append("status", getStatus())
            .append("sort", getSort())
            .toString();
    }
}
